#ifndef _REGION_H
#define _REGION_H

#include <inttypes.h>
#include <sqlite3.h>

typedef enum { TUTORIAL=0, SCENARIO, OPEN_ENDED } RegionType;
typedef enum { LAND=0, TREES, WATER } TileType;

typedef struct {
	char* name;
	RegionType type;
	int w, h;
	uint8_t* data;
	char* filename;
	char* city_names[8];
} Region;

int regions_names(RegionType type, char** names);
Region* new_region(char* name);
Region* load_region(char* name);
void region_free(Region* r);
Region* region_reboot(Region* r);
void region_delete(Region* r);
void region_rename(Region* r, char* new_name);

#endif
